package com.mindata.blockchain.socket.raft.client;

import com.mindata.blockchain.block.Block;
import com.mindata.blockchain.socket.packet.BlockPacket;

/**
 * @Author:wenhui
 * @Description:raft数据操作接口类
 * @Date:Create in 2018-7-25 15:43
 **/
public interface RaftService {
    /**
     * @Author:wenhui
     * @Description:
     * @Date:Create in 2018-7-25 15:43
     **/
    void set(String key, Block block) throws Exception;

    /**
     * @Author:wenhui
     * @Description:
     * @Date:Create in 2018-7-25 15:43
     **/
    BlockPacket get(String key);
}
